package com.med.meddataintegrator.common.basic.config;

import com.p6spy.engine.spy.appender.MessageFormattingStrategy;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CustomMessageFormat implements MessageFormattingStrategy {

    @Override
    public String formatMessage(int connectionId, String now, long elapsed, String category, String prepared, String sql, String url) {
        return String.format("[%s] [%dms] %s", now, elapsed, sql);
    }
}